#!/ Mypython
# -*- coding: utf-8 -*-
# @Time    : 2018/8/13 16:13
# @Author  : LinYimeng
# @File    : testdb.py
# @Software: PyCharm

from django.http import HttpResponse

from firstReduceAPP.models import Test

# 数据库操作
def testdb(request):
    test1 = Test(name='tom')
    test1.save()
    return HttpResponse("<python p>数据添加成功！</p>")